package cn.liweixi.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    //当前页，默认为1
    private Integer currentPage = 1;
    //每页显示条数
    private Integer pageSize = 5;

    public Integer getStart(){
        return (this.currentPage - 1) * this.pageSize;
    }

    //高级查询
    //根据关键字查询
    private String keyword;

}
